public class newStudent extends Student{
    String year;
    public newStudent() {
    }

    @Override
    public String toString() {
        return "newStudent{" +
                "year='" + year + '\'' +
                ", id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
